package com.ruoyi.jproom.service;


import com.ruoyi.jproom.entity.Housing;
import com.ruoyi.jproom.entity.Residential;
import com.ruoyi.jproom.entity.Sell;
import com.ruoyi.jproom.utils.BaseResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author zeo
 * @explain 小区信息服务
 * @date 2020/7/27 10:44
 */
public interface ResidentialService {

    /**
     * 获取所有小区信息数据
     * @param residential
     * @return
     */
    BaseResult findResidentList(Residential residential);

    /**
     * 根据小区名称获取小区id
     * @param name
     * @return
     */
    String findResidentialIdByResidentialName(String name);

    /**
     * 根据小区id获取小区对象
     * @param residentialId
     * @return
     */
    Residential findResidentByResidentialId(String residentialId);

    /**
     * 服务端获取所有小区信息
     *
     * @return
     */
    List<Residential> serverFindResidentList(Residential residential);

    /**
     * 修改小区信息
     * @param residential
     * @return
     */
    int rentResidentialEdit(Residential residential);
}
